
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>运行 · gitbook笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="fanzhongdeqiuchun">
        <meta name="identifier" content="图书编号-1" scheme="ISBN">
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-flexible-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../chap3/chap3.html" />
    
    
    <link rel="prev" href="section2_gitbookplugin.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../">
            
                <a href="../">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../chap1.html">
            
                <a href="../chap1.html">
            
                    
                    基础环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="chap2.html">
            
                <a href="chap2.html">
            
                    
                    项目环境
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="section1_vscode.html">
            
                <a href="section1_vscode.html">
            
                    
                    VSCode编写Markdown文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="section2_gitbookplugin.html">
            
                <a href="section2_gitbookplugin.html">
            
                    
                    gitbook插件
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4.3" data-path="section3_run.html">
            
                <a href="section3_run.html">
            
                    
                    运行
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../chap3/chap3.html">
            
                <a href="../chap3/chap3.html">
            
                    
                    发布
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../chap3/section1_giteepage.html">
            
                <a href="../chap3/section1_giteepage.html">
            
                    
                    Gitee Page
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../chap3/section2_nginx.html">
            
                <a href="../chap3/section2_nginx.html">
            
                    
                    Nginx服务部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../chap3/section3_pdf.html">
            
                <a href="../chap3/section3_pdf.html">
            
                    
                    生成pdf
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >运行</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x8FD0;&#x884C;">&#x8FD0;&#x884C;</h1>
<p>&#x7535;&#x5B50;&#x4E66;&#x53D1;&#x5E03;&#x51FA;&#x53BB;&#x4E4B;&#x524D;&#xFF0C;&#x80AF;&#x5B9A;&#x9700;&#x8981;&#x9884;&#x89C8;&#x3002;&#x5982;&#x679C;&#x9884;&#x89C8;&#x90FD;&#x6709;&#x95EE;&#x9898;&#xFF0C;&#x90A3;&#x80AF;&#x5B9A;&#x662F;&#x65E0;&#x6CD5;&#x53D1;&#x5E03;&#x7684;&#x3002;</p>
<h2 id="1-&#x51C6;&#x5907;&#x5DE5;&#x4F5C;">1 &#x51C6;&#x5907;&#x5DE5;&#x4F5C;</h2>
<p>&#x5728;package.json&#x914D;&#x7F6E;&#x5982;&#x4E0B;</p>
<pre><code>{
  &quot;scripts&quot;: {
    &quot;serve&quot;: &quot;gitbook serve&quot;,
    &quot;build&quot;: &quot;gitbook build&quot;
  },
}
</code></pre><h2 id="2-&#x9884;&#x89C8;">2 &#x9884;&#x89C8;</h2>
<p>&#x6267;&#x884C;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre><code>npm run serve
</code></pre><p>&#x201C;npm run serve&#x201D;&#x5B9E;&#x9645;&#x4E0A;&#x5C31;&#x662F;&#x6267;&#x884C;&#x201C;git serve&#x201D;&#x547D;&#x4EE4;&#x3002;build&#x540C;&#x7406;&#x3002;</p>
<p>&#x6548;&#x679C;&#xFF1A;</p>
<pre><code>PS G:\book\note\gitbooktutorial&gt; npm run serve

&gt; gitbooktutorial@1.0.0 serve G:\book\note\gitbooktutorial
&gt; gitbook serve

Live reload server started on port: 35729
Press CTRL+C to quit ...

info: 7 plugins are installed
info: loading plugin &quot;livereload&quot;... OK
info: loading plugin &quot;highlight&quot;... OK
info: loading plugin &quot;search&quot;... OK
info: loading plugin &quot;lunr&quot;... OK
info: loading plugin &quot;sharing&quot;... OK
info: loading plugin &quot;fontsettings&quot;... OK
info: loading plugin &quot;theme-default&quot;... OK
info: found 6 pages
info: found 6 asset files
info: &gt;&gt; generation finished with success in 1.1s !

Starting server ...
Serving book on http://localhost:4000
</code></pre><p>&#x603B;&#x7ED3;&#xFF1A;
&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x8F93;&#x5165;&#x201C;<a href="http://localhost:4000&#x201D;&#xFF0C;&#x5C31;&#x53EF;&#x4EE5;&#x9884;&#x89C8;&#x3002;" target="_blank">http://localhost:4000&#x201D;&#xFF0C;&#x5C31;&#x53EF;&#x4EE5;&#x9884;&#x89C8;&#x3002;</a></p>
<h2 id="3-&#x751F;&#x6210;&#xFF08;build&#xFF09;">3 &#x751F;&#x6210;&#xFF08;build&#xFF09;</h2>
<p>&#x6267;&#x884C;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre><code>npm run build
</code></pre><p>&#x6548;&#x679C;&#xFF1A;</p>
<pre><code>PS G:\book\note\gitbooktutorial&gt; npm run build

&gt; gitbooktutorial@1.0.0 build G:\book\note\gitbooktutorial
&gt; gitbook build

info: 13 plugins are installed 
info: 11 explicitly listed 
info: loading plugin &quot;search-pro&quot;... OK 
info: loading plugin &quot;code&quot;... OK
info: loading plugin &quot;expandable-chapters&quot;... OK
info: loading plugin &quot;back-to-top-button&quot;... OK
info: loading plugin &quot;flexible-alerts&quot;... OK
info: loading plugin &quot;highlight&quot;... OK 
info: loading plugin &quot;search&quot;... OK 
info: loading plugin &quot;lunr&quot;... OK 
info: loading plugin &quot;sharing&quot;... OK 
info: loading plugin &quot;fontsettings&quot;... OK
info: loading plugin &quot;theme-default&quot;... OK 
info: found 7 pages 
info: found 9 asset files
info: &gt;&gt; generation finished with success in 1.1s !
</code></pre><p>&#x5DE5;&#x7A0B;&#xFF1A;
&#x6839;&#x76EE;&#x5F55;&#x4E0B;&#x81EA;&#x52A8;&#x751F;&#x6210;&#x4E00;&#x4E2A;_book&#x76EE;&#x5F55;&#x3002;&#x8FD9;&#x4E2A;&#x5C31;&#x662F;&#x9759;&#x6001;&#x8D44;&#x6E90;&#xFF0C;&#x53EF;&#x4EE5;&#x81EA;&#x5DF1;&#x5EFA;&#x7ACB;&#x4E00;&#x4E2A;&#x535A;&#x5BA2;&#x7F51;&#x7AD9;&#xFF0C;&#x6216;&#x8005;&#x53D1;&#x5E03;&#x5230;gitee&#x548C;github&#x7684;pages&#x4E0A;&#x3002;
&#x6709;&#x4E9B;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E0D;&#x9700;&#x8981;&#x53D1;&#x5E03;&#x51FA;&#x53BB;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x6839;&#x76EE;&#x5F55;&#x4E0B;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;&#x5FFD;&#x7565;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x201C;.bookignore&#x201D;&#x3002;</p>
<p><strong>.bookignore</strong>&#x5185;&#x5BB9;&#xFF1A;</p>
<pre><code>package.json
.bookignore
*.pdf
</code></pre>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="section2_gitbookplugin.html" class="navigation navigation-prev " aria-label="Previous page: gitbook插件">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../chap3/chap3.html" class="navigation navigation-next " aria-label="Next page: 发布">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"运行","level":"1.4.3","depth":2,"next":{"title":"发布","level":"1.5","depth":1,"path":"chap3/chap3.md","ref":"chap3/chap3.md","articles":[{"title":"Gitee Page","level":"1.5.1","depth":2,"path":"chap3/section1_giteepage.md","ref":"chap3/section1_giteepage.md","articles":[]},{"title":"Nginx服务部署","level":"1.5.2","depth":2,"path":"chap3/section2_nginx.md","ref":"chap3/section2_nginx.md","articles":[]},{"title":"生成pdf","level":"1.5.3","depth":2,"path":"chap3/section3_pdf.md","ref":"chap3/section3_pdf.md","articles":[]}]},"previous":{"title":"gitbook插件","level":"1.4.2","depth":2,"path":"chap2/section2_gitbookplugin.md","ref":"chap2/section2_gitbookplugin.md","articles":[]},"dir":"ltr"},"config":{"plugins":["search-pro","code","expandable-chapters","back-to-top-button","flexible-alerts"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"search-pro":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"fontSettings":{"theme":"night","family":"sans","size":4},"highlight":{},"back-to-top-button":{},"flexible-alerts":{"style":"flat","note":{"label":"Note","icon":"fa fa-info-circle","className":"info"},"tip":{"label":"Tip","icon":"fa fa-lightbulb-o","className":"tip"},"warning":{"label":"Warning","icon":"fa fa-exclamation-triangle","className":"warning"},"danger":{"label":"Attention","icon":"fa fa-ban","className":"danger"}},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"fanzhongdeqiuchun","lang":"zh-cn","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"isbn":"图书编号-1","variables":{},"title":"gitbook笔记","gitbook":"*","description":"gitbook笔记"},"file":{"path":"chap2/section3_run.md","mtime":"2023-04-10T11:05:39.021Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-05-14T17:03:21.954Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-flexible-alerts/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

